<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
		<title>CCEffectReflection Class Reference</title>
		<meta id="xcode-display" name="xcode-display" content="render"/>
		<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
		<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
		<meta name="generator" content="appledoc 2.2 (build 963)" />
	</head>
	<body>
		<header id="top_header">
			<div id="library" class="hideInXcode">
				<h1><a id="libraryTitle" href="../index.html">Cocos2D </a></h1>
				<a id="developerHome" href="../index.html">3.2.0</a>
			</div>
			
			<div id="title" role="banner">
				<h1 class="hideInXcode">CCEffectReflection Class Reference</h1>
			</div>
			<ul id="headerButtons" role="toolbar">
				<li id="toc_button">
					<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
				</li>
				<li id="jumpto_button" role="navigation">
					<select id="jumpTo">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	
	
	
	
	<option value="tasks">Tasks</option>
	
	
	
	
	
	<option value="properties">Properties</option>
	
	<option value="//api/name/environment">&nbsp;&nbsp;&nbsp;&nbsp;environment</option>
	
	<option value="//api/name/fresnelBias">&nbsp;&nbsp;&nbsp;&nbsp;fresnelBias</option>
	
	<option value="//api/name/fresnelPower">&nbsp;&nbsp;&nbsp;&nbsp;fresnelPower</option>
	
	<option value="//api/name/normalMap">&nbsp;&nbsp;&nbsp;&nbsp;normalMap</option>
	
	<option value="//api/name/shininess">&nbsp;&nbsp;&nbsp;&nbsp;shininess</option>
	
	
	
	
	<option value="class_methods">Class Methods</option>
	
	<option value="//api/name/effectWithShininess:environment:">&nbsp;&nbsp;&nbsp;&nbsp;+ effectWithShininess:environment:</option>
	
	<option value="//api/name/effectWithShininess:environment:normalMap:">&nbsp;&nbsp;&nbsp;&nbsp;+ effectWithShininess:environment:normalMap:</option>
	
	<option value="//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:">&nbsp;&nbsp;&nbsp;&nbsp;+ effectWithShininess:fresnelBias:fresnelPower:environment:</option>
	
	<option value="//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:">&nbsp;&nbsp;&nbsp;&nbsp;+ effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:</option>
	
	
	
	
	<option value="instance_methods">Instance Methods</option>
	
	<option value="//api/name/init">&nbsp;&nbsp;&nbsp;&nbsp;- init</option>
	
	<option value="//api/name/initWithShininess:environment:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithShininess:environment:</option>
	
	<option value="//api/name/initWithShininess:environment:normalMap:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithShininess:environment:normalMap:</option>
	
	<option value="//api/name/initWithShininess:fresnelBias:fresnelPower:environment:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithShininess:fresnelBias:fresnelPower:environment:</option>
	
	<option value="//api/name/initWithShininess:fresnelBias:fresnelPower:environment:normalMap:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithShininess:fresnelBias:fresnelPower:environment:normalMap:</option>
	
	
	
</select>
				</li>
			</ul>
		</header>
		<nav id="tocContainer" class="isShowingTOC">
			<ul id="toc" role="tree">
				
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>




<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessing Effect Attributes">Accessing Effect Attributes</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Initializing a CCEffectReflection object">Initializing a CCEffectReflection object</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating a CCEffectReflection object">Creating a CCEffectReflection object</a></span></li>
	
</ul></li>





<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/environment">environment</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fresnelBias">fresnelBias</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/fresnelPower">fresnelPower</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/normalMap">normalMap</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shininess">shininess</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/effectWithShininess:environment:">effectWithShininess:environment:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/effectWithShininess:environment:normalMap:">effectWithShininess:environment:normalMap:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:">effectWithShininess:fresnelBias:fresnelPower:environment:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:">effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/init">init</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithShininess:environment:">initWithShininess:environment:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithShininess:environment:normalMap:">initWithShininess:environment:normalMap:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithShininess:fresnelBias:fresnelPower:environment:">initWithShininess:fresnelBias:fresnelPower:environment:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithShininess:fresnelBias:fresnelPower:environment:normalMap:">initWithShininess:fresnelBias:fresnelPower:environment:normalMap:</a></span></li>
	
</ul></li>


			</ul>
		</nav>
		<article>
			<div id="contents" class="isShowingTOC" role="main">
				<a title="CCEffectReflection Class Reference" name="top"></a>
				<div class="main-navigation navigation-top">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="header">
					<div class="section-header">
						<h1 class="title title-header">CCEffectReflection Class Reference</h1>
					</div>		
				</div>
				<div id="container">	
					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<td class="specification-title">Inherits from</td>
	<td class="specification-value"><a href="../Classes/CCEffect.html">CCEffect</a> : NSObject</td>
</tr><tr>
	<td class="specification-title">Declared in</td>
	<td class="specification-value">CCEffectReflection.h</td>
</tr>
						</tbody></table></div>
					
                    
                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>CCEffectReflection uses reflection to simulate the appearance of a shiny object contained within
an <a href="#//api/name/environment">environment</a>. Reflection is controlled with two fresnel reflectance values, the normal map, and
a reflection <a href="#//api/name/environment">environment</a> sprite.</p>
					</div>
					
					
					
					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						<h2 class="subtitle subtitle-tasks">Tasks</h2>
						
						
						<a title="Accessing Effect Attributes" name="task_Accessing Effect Attributes"></a>
						<h3 class="subsubtitle task-title">Accessing Effect Attributes</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/environment">&nbsp;&nbsp;environment</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/normalMap">&nbsp;&nbsp;normalMap</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/shininess">&nbsp;&nbsp;shininess</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/fresnelBias">&nbsp;&nbsp;fresnelBias</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/fresnelPower">&nbsp;&nbsp;fresnelPower</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li>
						</ul>
						
						
						<a title="Initializing a CCEffectReflection object" name="task_Initializing a CCEffectReflection object"></a>
						<h3 class="subsubtitle task-title">Initializing a CCEffectReflection object</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/init">&ndash;&nbsp;init</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithShininess:environment:">&ndash;&nbsp;initWithShininess:environment:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithShininess:environment:normalMap:">&ndash;&nbsp;initWithShininess:environment:normalMap:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithShininess:fresnelBias:fresnelPower:environment:">&ndash;&nbsp;initWithShininess:fresnelBias:fresnelPower:environment:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithShininess:fresnelBias:fresnelPower:environment:normalMap:">&ndash;&nbsp;initWithShininess:fresnelBias:fresnelPower:environment:normalMap:</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Creating a CCEffectReflection object" name="task_Creating a CCEffectReflection object"></a>
						<h3 class="subsubtitle task-title">Creating a CCEffectReflection object</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/effectWithShininess:environment:">+&nbsp;effectWithShininess:environment:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/effectWithShininess:environment:normalMap:">+&nbsp;effectWithShininess:environment:normalMap:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:">+&nbsp;effectWithShininess:fresnelBias:fresnelPower:environment:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:">+&nbsp;effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:</a></code>
	</span>
	
	
</li>
						</ul>
						
					</div>
					
					
					
					
					
					<div class="section section-methods">
						<a title="Properties" name="properties"></a>
						<h2 class="subtitle subtitle-methods">Properties</h2>
						
						<div class="section-method">
	<a name="//api/name/environment" title="environment"></a>
	<h3 class="subsubtitle method-title">environment</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The environment that will be reflected by the affected node. Typically this is a sprite
that is not visible in the scene as it is conceptually &ldquo;behind the viewer&rdquo; and only visible
where reflected by the affected node.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) CCSprite *environment</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/fresnelBias" title="fresnelBias"></a>
	<h3 class="subsubtitle method-title">fresnelBias</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The bias term in the fresnel reflectance equation:
reflectance = max(0.0, fresnelBias + (1 - fresnelBias) * pow((1 - nDotV), <a href="#//api/name/fresnelPower">fresnelPower</a>))
This value is in the range [0..1] and it controls the constant (view angle independent) contribution
to the reflectance equation.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic) float fresnelBias</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/fresnelPower" title="fresnelPower"></a>
	<h3 class="subsubtitle method-title">fresnelPower</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The power term in the fresnel reflectance equation:
reflectance = max(0.0, <a href="#//api/name/fresnelBias">fresnelBias</a> + (1 - <a href="#//api/name/fresnelBias">fresnelBias</a>) * pow((1 - nDotV), fresnelPower))
This value is in the range [0..inf] and it controls the view angle dependent contribution
to the reflectance equation.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic) float fresnelPower</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/normalMap" title="normalMap"></a>
	<h3 class="subsubtitle method-title">normalMap</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The normal map that encodes the normal vectors of the affected node. Each pixel in the normal
map is a 3 component vector that is perpendicular to the surface of the sprite at that point.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) CCSpriteFrame *normalMap</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/shininess" title="shininess"></a>
	<h3 class="subsubtitle method-title">shininess</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The overall shininess of the attached sprite. This value is in the range [0..1] and it controls
how much of the reflected <a href="#//api/name/environment">environment</a> contributes to the final color of the affected pixels.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic) float shininess</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Class Methods" name="class_methods"></a>
						<h2 class="subtitle subtitle-methods">Class Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/effectWithShininess:environment:" title="effectWithShininess:environment:"></a>
	<h3 class="subsubtitle method-title">effectWithShininess:environment:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates a CCEffectReflection object with the specified <a href="#//api/name/environment">environment</a> and the following default parameters:
<a href="#//api/name/fresnelBias">fresnelBias</a> = 1.0, <a href="#//api/name/fresnelPower">fresnelPower</a> = 0.0, <a href="#//api/name/normalMap">normalMap</a> = nil</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (id)effectWithShininess:(float)<em>shininess</em> environment:(CCSprite *)<em>environment</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/effectWithShininess:environment:normalMap:" title="effectWithShininess:environment:normalMap:"></a>
	<h3 class="subsubtitle method-title">effectWithShininess:environment:normalMap:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates a CCEffectReflection object with the specified <a href="#//api/name/environment">environment</a> and normal map and the following default parameters:
<a href="#//api/name/fresnelBias">fresnelBias</a> = 1.0, <a href="#//api/name/fresnelPower">fresnelPower</a> = 0.0</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (id)effectWithShininess:(float)<em>shininess</em> environment:(CCSprite *)<em>environment</em> normalMap:(CCSpriteFrame *)<em>normalMap</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>normalMap</em></dt>
			<dd><p>The normal map of the affected node. This can also be specified as a property of the affected sprite.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:" title="effectWithShininess:fresnelBias:fresnelPower:environment:"></a>
	<h3 class="subsubtitle method-title">effectWithShininess:fresnelBias:fresnelPower:environment:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates a CCEffectReflection object with the specified parameters and nil normal map.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (id)effectWithShininess:(float)<em>shininess</em> fresnelBias:(float)<em>bias</em> fresnelPower:(float)<em>power</em> environment:(CCSprite *)<em>environment</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>bias</em></dt>
			<dd><p>The bias term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>power</em></dt>
			<dd><p>The power term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:" title="effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:"></a>
	<h3 class="subsubtitle method-title">effectWithShininess:fresnelBias:fresnelPower:environment:normalMap:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates a CCEffectReflection object with the specified parameters.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (id)effectWithShininess:(float)<em>shininess</em> fresnelBias:(float)<em>bias</em> fresnelPower:(float)<em>power</em> environment:(CCSprite *)<em>environment</em> normalMap:(CCSpriteFrame *)<em>normalMap</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>bias</em></dt>
			<dd><p>The bias term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>power</em></dt>
			<dd><p>The power term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>normalMap</em></dt>
			<dd><p>The normal map of the affected node. This can also be specified as a property of the affected sprite.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Instance Methods" name="instance_methods"></a>
						<h2 class="subtitle subtitle-methods">Instance Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/init" title="init"></a>
	<h3 class="subsubtitle method-title">init</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes a CCEffectReflection object with the following default parameters:
<a href="#//api/name/fresnelBias">fresnelBias</a> = 1.0, <a href="#//api/name/fresnelPower">fresnelPower</a> = 0.0, <a href="#//api/name/environment">environment</a> = nil, <a href="#//api/name/normalMap">normalMap</a> = nil</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (id)init</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithShininess:environment:" title="initWithShininess:environment:"></a>
	<h3 class="subsubtitle method-title">initWithShininess:environment:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes a CCEffectReflection object with the specified <a href="#//api/name/environment">environment</a> and normal map and the following default parameters:
<a href="#//api/name/fresnelBias">fresnelBias</a> = 1.0, <a href="#//api/name/fresnelPower">fresnelPower</a> = 0.0, <a href="#//api/name/normalMap">normalMap</a> = nil</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (id)initWithShininess:(float)<em>shininess</em> environment:(CCSprite *)<em>environment</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithShininess:environment:normalMap:" title="initWithShininess:environment:normalMap:"></a>
	<h3 class="subsubtitle method-title">initWithShininess:environment:normalMap:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes a CCEffectReflection object with the specified <a href="#//api/name/environment">environment</a> and normal map and the following default parameters:
<a href="#//api/name/fresnelBias">fresnelBias</a> = 1.0, <a href="#//api/name/fresnelPower">fresnelPower</a> = 0.0</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (id)initWithShininess:(float)<em>shininess</em> environment:(CCSprite *)<em>environment</em> normalMap:(CCSpriteFrame *)<em>normalMap</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>normalMap</em></dt>
			<dd><p>The normal map of the affected node. This can also be specified as a property of the affected sprite.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithShininess:fresnelBias:fresnelPower:environment:" title="initWithShininess:fresnelBias:fresnelPower:environment:"></a>
	<h3 class="subsubtitle method-title">initWithShininess:fresnelBias:fresnelPower:environment:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes a CCEffectReflection object with the specified parameters and a nil normal map.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (id)initWithShininess:(float)<em>shininess</em> fresnelBias:(float)<em>bias</em> fresnelPower:(float)<em>power</em> environment:(CCSprite *)<em>environment</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>bias</em></dt>
			<dd><p>The bias term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>power</em></dt>
			<dd><p>The power term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithShininess:fresnelBias:fresnelPower:environment:normalMap:" title="initWithShininess:fresnelBias:fresnelPower:environment:normalMap:"></a>
	<h3 class="subsubtitle method-title">initWithShininess:fresnelBias:fresnelPower:environment:normalMap:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes a CCEffectReflection object with the specified parameters.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (id)initWithShininess:(float)<em>shininess</em> fresnelBias:(float)<em>bias</em> fresnelPower:(float)<em>power</em> environment:(CCSprite *)<em>environment</em> normalMap:(CCSpriteFrame *)<em>normalMap</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>shininess</em></dt>
			<dd><p>The overall <a href="#//api/name/shininess">shininess</a> of the effect.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>bias</em></dt>
			<dd><p>The bias term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>power</em></dt>
			<dd><p>The power term in the fresnel reflectance equation.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>environment</em></dt>
			<dd><p>The <a href="#//api/name/environment">environment</a> image that will be reflected by the affected node.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>normalMap</em></dt>
			<dd><p>The normal map of the affected node. This can also be specified as a property of the affected sprite.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCEffectReflection object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCEffectReflection.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
                    
                    
				</div>
				<div class="main-navigation navigation-bottom">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="footer">
					<hr />
					<div class="footer-copyright">
						<p><span class="copyright">&copy; 2014 3.2.0. All rights reserved. (Last updated: 2014-08-12)</span><br />
						
						<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
						
					</div>
				</div>
			</div>
		</article>
		<script type="text/javascript">
			function jumpToChange()
			{
				window.location.hash = this.options[this.selectedIndex].value;
			}
			
			function toggleTOC()
			{
				var contents = document.getElementById('contents');
				var tocContainer = document.getElementById('tocContainer');
				
				if (this.getAttribute('class') == 'open')
				{
					this.setAttribute('class', '');
					contents.setAttribute('class', '');
					tocContainer.setAttribute('class', '');
					
					window.name = "hideTOC";
				}
				else
				{
					this.setAttribute('class', 'open');
					contents.setAttribute('class', 'isShowingTOC');
					tocContainer.setAttribute('class', 'isShowingTOC');
					
					window.name = "";
				}
				return false;
			}
			
			function toggleTOCEntryChildren(e)
			{
				e.stopPropagation();
				var currentClass = this.getAttribute('class');
				if (currentClass == 'children') {
					this.setAttribute('class', 'children open');
				}
				else if (currentClass == 'children open') {
					this.setAttribute('class', 'children');
				}
				return false;
			}
			
			function tocEntryClick(e)
			{
				e.stopPropagation();
				return true;
			}
			
			function init()
			{
				var selectElement = document.getElementById('jumpTo');
				selectElement.addEventListener('change', jumpToChange, false);
				
				var tocButton = document.getElementById('table_of_contents');
				tocButton.addEventListener('click', toggleTOC, false);
				
				var taskTreeItem = document.getElementById('task_treeitem');
				if (taskTreeItem.getElementsByTagName('li').length > 0)
				{
					taskTreeItem.setAttribute('class', 'children');
					taskTreeItem.firstChild.setAttribute('class', 'disclosure');
				}
				
				var tocList = document.getElementById('toc');
				
				var tocEntries = tocList.getElementsByTagName('li');
				for (var i = 0; i < tocEntries.length; i++) {
					tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
				}
				
				var tocLinks = tocList.getElementsByTagName('a');
				for (var i = 0; i < tocLinks.length; i++) {
					tocLinks[i].addEventListener('click', tocEntryClick, false);
				}
				
				if (window.name == "hideTOC") {
					toggleTOC.call(tocButton);
				}
			}
			
			window.onload = init;
			
			// If showing in Xcode, hide the TOC and Header
			if (navigator.userAgent.match(/xcode/i)) {
				document.getElementById("contents").className = "hideInXcode"
				document.getElementById("tocContainer").className = "hideInXcode"
				document.getElementById("top_header").className = "hideInXcode"
			}
			
		</script>
	</body>
</html>